//
// Created by Administrator on 2022/1/29.
//

#include "lesson138.h"

void AbstractDringking::PourCup()
{
    cout << "in abstract: pour in the cup" << endl;
}

void AbstractDringking::makeDrinking()
{
    Boil();
    Brew();
    PourCup();
    AddSomting();
    cout << "in abstract: " << finalTips << "is done " << endl;
}

void Coffee::Boil() {
    cout << "Boil:coffe: boiling water: NongFuShanQuan" <<  endl;
}

void Coffee::Brew() {
    cout << "Brew: adding coffee!" << endl;
}

void Coffee::AddSomting() {
    cout << "AddSomthing: add: milk" << endl;
}

Coffee::Coffee()
{
    finalTips = "COFFEE";
}

Tea::Tea() {
    finalTips = "TEA";
}

void Tea::Boil() {
    cout << "Boil: boil water from xihu" << endl;
}

void Tea::Brew() {
    cout << "Brew: adding tea!" << endl;
}


void Tea::AddSomting() {
    cout << "AddSomthing: add: nothing" << endl;
}
